<div class="widgets">
  <div class="row">
    <div class="col-md-12">
      <div ba-panel ba-panel-title="现有用户列表"
           ba-panel-class="with-scroll">
        <div class="horizontal-scroll" style="min-height: 300px">
          <table class="table table-hover table-condensed " st-pipe="callServer" st-table="data.pageData">
            <thead>
            <tr class="sortable">
              <th class="table-id">序号</th>
              <th>激活码</th>
              <th>状态</th>
              <th>激活时间</th>
              <th>过期时间</th>
              <th>创建时间</th>
            </tr>
            <tr>
              <th></th>
              <th>
                <input st-search="code" placeholder="查询激活码" class="input-sm form-control search-input" type="search"/>
              </th>
              <th>
                <select class="form-control" ng-model="status" st-search="status"
                        style="width: 100px">
                  <option value="">全部</option>
                  <option value="0">未激活</option>
                  <option value="1">已激活</option>
                  <option value="9">确认中</option>
                </select>
              </th>
              <th colspan="7"></th>
            </tr>
            </thead>
            <tbody ng-show="!isLoading">
            <tr ng-repeat="item in data.pageData track by $index">
              <td class="table-id">{{(data.pageNo - 1)*20 + $index + 1}}</td>
              <td>{{item.code}}</td>
              <td>{{{0:'未激活', 1:'已激活', 9:'确认中'}[item.status]}}</td>
              <td>{{item.activationTime | amDateFormat:'YYYY-MM-DD HH:mm'}}</td>
              <td>{{item.dueTime | amDateFormat:'YYYY-MM-DD HH:mm'}}</td>
              <td>{{item.createDate | amDateFormat:'YYYY-MM-DD HH:mm'}}</td>
            </tr>
            </tbody>
            <tbody ng-show="isLoading">
            <tr>
              <td colspan="15" class="text-center">加载中 ... </td>
            </tr>
            </tbody>
            <tfoot>
            <tr>
              <td colspan="15" class="text-center">
                <div st-template="app/pages/support/pagination.html" st-pagination="" st-items-by-page="PAGE_SIZE" st-displayed-pages="5"></div>
              </td>
            </tr>
            </tfoot>
          </table>
          <p>共{{data.totalCount}}条。{{PAGE_SIZE}}条/页。共{{data.totalPage}}页</p>
        </div>
      </div>
    </div>
  </div>
</div>
